package command

import (
	"energy-amiot-platform/middleware"

	"github.com/gin-gonic/gin"
)

func Routers(r *gin.Engine) {
	// 允许平台管理员访问，平台用户访问，需提供产品master-key
	group1 := r.Group("command", middleware.AuthToken(), middleware.AuthMasterKey)
	group1.POST(":id", send)

	r.POST("/client/command/:id", middleware.AuthApp, middleware.AuthMasterKey, sendForClient)
}
